package com.itwn.comic.mapper;

import com.itwn.comic.entity.Buy;
import com.itwn.comic.vo.BuyDetailVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BuyMapper {
    
    int insert(Buy record);

    List<Buy> selectAll();
    
    List<BuyDetailVo> selectBuyDetailByCons(@Param("username") String username, @Param("resourcename") String resourcename);

 
    void deleteByKey(@Param("userId") Integer userId , @Param("sectionId") Integer sectionId);
}